

import Main_UIView from "../auto_uiView/Main_UIView";

const { ccclass, property, inspector } = cc._decorator;

@ccclass
export default class Main_Logic extends cc.Component {

    uiView: Main_UIView = null;

    protected onLoad(): void {

        this.uiView = this.node.getComponent(Main_UIView);
        cc.resources.load('prefab/view/MainView', cc.Prefab, (err, assets) => {
            const node = cc.instantiate(assets)
            this.node.addChild(node)
        })
    }
}
